package pack9999;

public class Work03 {
    private int id;
    public String name;
    char gender;

    public void sleep() {
        System.out.println(name + "准备睡觉");
    }

    public void eat(String food) {
        System.out.println(name + "准备吃" + food);
    }

    public void add(int a, int b) {
        System.out.println(name + "开始计算");
        System.out.println(a + "+" + b + "=" + (a + b));
    }

    public int add2(int a, int b) {
        System.out.println(name + "开始计算" + a + "和" + b + "的和");
        int sum = a + b;
        return sum;
    }
}
